<!DOCTYPE html>
<html>
<#include "../../include/PC_Header.html">
<body>
	<#assign nid="my_account"> 
	<#assign flag="address"> 
	<#include "../../include/header.html">
	<!--header-end-->
	<!--用户中心的主栏目 开始-->
	<div class="qd_aboutus-top"><h3>您的位置：<a href="/">首页</a>&gt;<a>账户管理</a>&gt;<a href="/member/score/receivingInfo.html">收货信息</a></h3></div>
		<div class="pb30 pt20">
	<#if userCache.userType==2||userCache.userType==3>
		<#include "../../include/member_borrow_header.html">
	<#else>
		<#include "../../include/member_header.html">
    </#if>
	<div id="container" class="clearfix">
		<div class="usermain clearfix">
			<!--左边的导航 开始-->
			<div class="user_left"> 
			<#assign mid="m_invest">
			    <#if userCache.userType==2>
			    <#include "../../../member_borrow/account_menu.html">
			    <#else>
			    <#include "../../../member/account_menu.html">
			    </#if>
			</div>    
			<!--左边的导航 结束-->

			<!--右边的内容 开始-->
			<div class="user_right">
					<div class="user_right_main">
						<!-- S 修改收货地址 -->
						<div class="addressList">
							<h2 class="user_title clearfix">
								<p class="float_left">收货地址</p>
								<p class="addressRecord">已保存了<em class="hasAddress">${exit_num}</em>条地址，还可以保存<em class="remainCount">${remain_num}条</em>地址</p>
							</h2>
							<table class="table_content addressTable">
								<thead>
									<tr>
										<th>收货人</th>
										<th>所在地区</th>
										<th>详情地址</th>
										<th>邮编</th>
										<th>手机/电话</th>
										<th>操作</th>
										<th></th>
									</tr>
								</thead>
								<tbody>
								<#list list as item>
									<tr class="hoverDefault">
										<td class='name'>${item.name!}</td>
										<td class='province'><em class='provincea'>${item.province!}</em><em class='city'>${item.city!}</em><em class='area'>${item.area!}</em></td>
										<td class='address'>${item.address!}</td>
										<td class='postalCode'>${item.postalCode!}</td>
										<td><em class="mobile">${item.mobile!}</em><em class="phone">${item.phone!}</em></td>
										<td data-val="<#if item.defultInfo!>1<#else>0</#if>" data-id="${item.id!}" class="defultInfo0"><a class="changeAdd" href="javascript:;">修改</a>|<a class="disableRecord" href="javascript:;">删除</a></td>
										<td class="defalut"><a href="javascript:;" class="defaultAddress">设为默认</a></td>
									</tr>
								</#list>	
								</tbody>
							</table>
						</div>
						
						<div class="addressMain" id="addressMaindiv" <#if list?? && (list?size >4)> style="display: none"  </#if>>
							<form class="addressForm" method="post" autocomplete="off">
								<p class="user_title scoreTitle">新增收货信息</p>
								<ul>
									<li><label>收货人姓名</label><input type="text" name="name" class="addressInput" maxlength="25"/><span>姓名不能超过25个字符</span></li>
									<li><label>手机号码</label><input type="text" name="mobile" class="addressInput phoneNumber" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" maxlength="11"/><span>电话号码、手机号码至少填一项</span></li>
									<li><label>电话号码</label><input type="text" name="phone" class="addressInput areaCode" onkeyup="this.value=this.value.replace(/[^0-9-]/g,'')" maxlength="13"/><span>电话号码、手机号码至少填一项</span></li>
									<li><label>邮政编码</label><input type="text" name="postalCode" class="addressInput" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" maxlength="6"><span>请填写邮政编码</span></li>
									<li id="city"><label>所在位置</label>
										<select class="prov" name="province"><option value="浙江">浙江</option></select>  
									    <select class="city" name="city" disabled="disabled"><option value="杭州">杭州</option></select> 
									    <select class="dist" name="area" disabled="disabled"><option value="西湖区">西湖区</option></select>
									</li>
									<li><label>详细地址</label><textarea name="address" rows="5" cols="50" class="addressInput4"></textarea><span>不需要重复填写省市区，必须大于5个字符，小于120个字符</span></li>
									<li class="checkAddress"><input name="defultInfo" type="checkbox" value="true">设置为默认收货地址</li>
								</ul>
								<input name="addReceivingInfo" value="${addReceivingInfo!}" type="hidden">
								<input type="submit" name="addressSubmit" class="addressSubmit" value="保存"/>
								<input type="hidden" name="id"/>
								<input type="hidden" name="status"/>
								<input type="hidden" name="address_add_token"  value="${address_add_token}" />
							</form>
							
						</div>
						
						<!-- E 修改收货地址 -->	
					</div>		
				</div>
				<!-- E-2.0积分记录 -->
			</div>
			<!--右边的内容 结束-->
		</div>
		</div>
	<!--用户中心的主栏目 结束-->
	<#include "../../include/PC_Footer_Additional_JS.html">
	<script>
		seajs.use('${webroot}${theme_dir}/media/js/member/receveInfo');
	</script>	
	<#include "../../include/footer.html">
</body>
</html>
